import request from '../../utils/request'

// 获取设备实时数据
export function list(query) {
    return request({
        url: '/onenet/personstatusdata/realdata',
        method: 'get',
        params: query
    })
}

// 获取设备列表
export function getDeviceList(query) {
    return request({
        url: '/onenet/personstatusdata/list',
        method: 'get',
        params: query
    })
}

// 获取设备看历史数据
export function historylist(query) {
    return request({
        url: '/onenet/personstatusdata/history/existence',
        method: 'get',
        params: query
    })
}